//
//  TYZRouter+GoutRescue.m
//  wd-serviceapp
//
//  Created by Bin Tang on 2024/8/2.
//

#import "TYZRouter+GoutRescue.h"

NSString * const kWDRouterTarget_GoutRescue  = @"GoutRescue";

//action_rootGoutRescue
NSString * const kWDRouterAction_getRootGoutRescue = @"rootGoutRescue";

// action_goutRescueItem
NSString * const kWDRouterAction_getGoutRescueItem = @"goutRescueItem";

// action_goutWaitAssign 工单界面-外出-待接单
NSString * const kWDRouterAction_getGoutWaitAssign = @"goutWaitAssign";

// action_grabOrdersPersonInfo 抢单个人信息填写
NSString * const kWDRouterAction_getGrabOrdersPersonInfo = @"grabOrdersPersonInfo";

// action_grabWaitVehicle 工单界面-外出救援-待接车
NSString * const kWDRouterAction_getGrabWaitVehicle = @"grabWaitVehicle";

// action_grabApplyCancelRescue 工单界面-外出-待接车-申请取消救援
NSString * const kWDRouterAction_getGrabApplyCancelRescue = @"grabApplyCancelRescue";

// action_grabReviewVehicle 工单界面-外出-检查中
NSString * const kWDRouterAction_getGrabReviewVehicle = @"grabReviewVehicle";

// action_grabMaintenanceVehicle 工单界面-外出-维修中
NSString * const kWDRouterAction_getGrabMaintenanceVehicle = @"grabMaintenanceVehicle";

// action_grabPendingVehicle 工单界面-外出-待报单
NSString * const kWDRouterAction_getGrabPendingVehicle = @"grabPendingVehicle";


// action_choiceImagePicker 选择图片或者视频
NSString * const kEDSRouterAction_getChoiceImagePicker = @"choiceImagePicker";

// action_recordVideo 视图控制器
NSString * const kEDSRouterAction_getRecordVideo = @"recordVideo";

// action_videoPreview
NSString * const kEDSRouterAction_getVideoPreview = @"videoPreview";

// action_communityPlayer
NSString * const kEDSRouterAction_getCommunityPlayer = @"communityPlayer";

// action_videoCrop
NSString * const kEDSRouterAction_getVideoCrop = @"videoCrop";

//action_goutWaitAssignDetail 工单界面-外出待分派-详情
NSString * const kEDSRouterAction_getGoutWaitAssignDetail = @"goutWaitAssignDetail";

//action_goutWaitVehicleDetail 外出救援-待接车-详情
NSString * const kEDSRouterAction_getGoutWaitVehicleDetail = @"goutWaitVehicleDetail";

// action_goutWaitVehicleScan 外出救援-待接车 - 接车扫码
NSString * const kEDSRouterAction_getGoutWaitVehicleScan = @"goutWaitVehicleScan";

//action_goutReviewVehicleDetail 工单界面-外出-检查中-详情
NSString * const kEDSRouterAction_getGoutReviewVehicleDetail = @"goutReviewVehicleDetail";

// action_goutReviewVehicleScanCode 工单界面-外出-检查中-扫码
NSString * const kEDSRouterAction_getReviewVehicleScanCode = @"goutReviewVehicleScanCode";

// action_goutMaintenanceVehicleDetail 工单界面-外出-维修中-详情
NSString * const kEDSRouterAction_getGoutMaintenanceVehicleDetail = @"goutMaintenanceVehicleDetail";

// action_goutMaintenanceVehicleScanCode 工单界面-外出-维修中 - 扫码
NSString * const kEDSRouterAction_getGoutMaintenanceVehicleScanCode = @"goutMaintenanceVehicleScanCode";

// action_goutPendingVehicleDetail 工单界面-外出-待报单-详情
NSString * const kEDSRouterAction_getGoutPendingVehicleDetail = @"goutPendingVehicleDetail";

// action_goutVehicleLocation 车辆定位
NSString * const kEDSRouterAction_getGoutVehicleLocation = @"goutVehicleLocation";


@implementation TYZRouter (GoutRescue)

/// 外出救援
/// - Parameter params: params description
- (UIViewController *)getRootGoutRescueVC:(NSDictionary *)params {
    return [[TYZRouter sharedInstance] performTarget:kWDRouterTarget_GoutRescue action:kWDRouterAction_getRootGoutRescue params:params shouldCacheTarget:NO];
}

/// 外出救援 不同状态
/// - Parameter params: params description
- (UIViewController *)getGoutRescueItemVC:(NSDictionary *)params {
    return [[TYZRouter sharedInstance] performTarget:kWDRouterTarget_GoutRescue action:kWDRouterAction_getGoutRescueItem params:params shouldCacheTarget:NO];
}

/// 工单界面-外出-待接单
/// - Parameter params: params description
- (UIViewController *)getGoutWaitAssignVC:(NSDictionary *)params {
    return [[TYZRouter sharedInstance] performTarget:kWDRouterTarget_GoutRescue action:kWDRouterAction_getGoutWaitAssign params:params shouldCacheTarget:NO];
}

/// 抢单个人信息填写
/// - Parameter params: params description
- (UIViewController *)getGrabOrdersPersonInfoVC:(NSDictionary *)params {
    return [[TYZRouter sharedInstance] performTarget:kWDRouterTarget_GoutRescue action:kWDRouterAction_getGrabOrdersPersonInfo params:params shouldCacheTarget:NO];
}

/// 工单界面-外出救援-待接车
/// - Parameter params: params description
- (UIViewController *)getGrabWaitVehicleVC:(NSDictionary *)params {
    return [[TYZRouter sharedInstance] performTarget:kWDRouterTarget_GoutRescue action:kWDRouterAction_getGrabWaitVehicle params:params shouldCacheTarget:NO];
}

/// 工单界面-外出-待接车-申请取消救援
/// - Parameter params: params description
- (UIViewController *)getGrabApplyCancelRescueVC:(NSDictionary *)params {
    return [[TYZRouter sharedInstance] performTarget:kWDRouterTarget_GoutRescue action:kWDRouterAction_getGrabApplyCancelRescue params:params shouldCacheTarget:NO];
}

/// 工单界面-外出-检查中
/// - Parameter params: params description
- (UIViewController *)getGrabReviewVehicleVC:(NSDictionary *)params {
    return [[TYZRouter sharedInstance] performTarget:kWDRouterTarget_GoutRescue action:kWDRouterAction_getGrabReviewVehicle params:params shouldCacheTarget:NO];
}

/// 工单界面-外出-维修中
/// @param params params description
- (UIViewController *)getGrabMaintenanceVehicleVC:(NSDictionary *)params {
    return [[TYZRouter sharedInstance] performTarget:kWDRouterTarget_GoutRescue action:kWDRouterAction_getGrabMaintenanceVehicle params:params shouldCacheTarget:NO];
}

/// 工单界面-外出-待报单
/// @param params params description
- (UIViewController *)getGrabPendingVehicleVC:(NSDictionary *)params {
    return [[TYZRouter sharedInstance] performTarget:kWDRouterTarget_GoutRescue action:kWDRouterAction_getGrabPendingVehicle params:params shouldCacheTarget:NO];
}
// action_grabPendingVehicle 工单界面-外出-待报单
//NSString * const kWDRouterAction_getGrabPendingVehicle = @"grabPendingVehicle";


/**
 选择图片或者视频
 
 @param param @{@"selectPhotoNumType":@(1), @"photoNum":@(self.viewModel.dataList.count), @"isSelectImage":@(NO), @"selectPhotoBlock":block, @"ispush":@(NO)};
 @return return value description
 */
- (UIViewController *)getChoiceImagePickerVC:(NSDictionary *)param
{
    return [[TYZRouter sharedInstance] performTarget:kWDRouterTarget_GoutRescue action:kEDSRouterAction_getChoiceImagePicker params:param shouldCacheTarget:NO];
}
// NSString * const kEDSRouterAction_getChoiceImagePicker = @"choiceImagePicker";

/**
 录制视频
 
 @param param @{@"completionBlock":nil, @"second":10, @"isLastTimeImage":yes}
 @return return value description
 */
- (UIViewController *)getRecordVideoVC:(NSDictionary *)param
{
    return [[TYZRouter sharedInstance] performTarget:kWDRouterTarget_GoutRescue action:kEDSRouterAction_getRecordVideo params:param shouldCacheTarget:NO];
}
// action_recordVideo 视图控制器
//NSString * const kEDSRouterAction_getRecordVideo = @"recordVideo";

/**
 视频预览
 
 @param param {@"videoUrl":nil, @"removeVideoBlock":nil, @"isShowCrop":yes, @"model":nil}
 @return return value description
 */
- (UIViewController *)getVideoPreviewVC:(NSDictionary *)param
{
    return [[TYZRouter sharedInstance] performTarget:kWDRouterTarget_GoutRescue action:kEDSRouterAction_getVideoPreview params:param shouldCacheTarget:NO];
}
// action_videoPreview
//NSString * const kEDSRouterAction_getVideoPreview = @"videoPreview";

/**
 视频播放
 
 @param param {@"videoUrl":nil}
 @return return value description
 */
- (UIViewController *)getCommunityPlayerVC:(NSDictionary *)param
{
    return [[TYZRouter sharedInstance] performTarget:kWDRouterTarget_GoutRescue action:kEDSRouterAction_getCommunityPlayer params:param shouldCacheTarget:NO];
}
// action_communityPlayer
//NSString * const kEDSRouterAction_getCommunityPlayer = @"communityPlayer";

/**
 视频裁剪
 
 @param param {@"model":nil}
 @return return value description
 */
- (UIViewController *)getVideoCropVC:(NSDictionary *)param
{
    return [[TYZRouter sharedInstance] performTarget:kWDRouterTarget_GoutRescue action:kEDSRouterAction_getVideoCrop params:param shouldCacheTarget:NO];
}
// action_videoCrop
//NSString * const kEDSRouterAction_getVideoCrop = @"videoCrop";

/// 工单界面-外出待分派-详情
/// @param param param description
- (UIViewController *)getGoutWaitAssignDetailVC:(NSDictionary *)param {
    return [[TYZRouter sharedInstance] performTarget:kWDRouterTarget_GoutRescue action:kEDSRouterAction_getGoutWaitAssignDetail params:param shouldCacheTarget:NO];
}
//action_goutWaitAssignDetail 工单界面-外出待分派-详情
//NSString * const kEDSRouterAction_getGoutWaitAssignDetail = @"goutWaitAssignDetail";

/// 外出救援-待接车-详情
/// @param param param description
- (UIViewController *)getGoutWaitVehicleDetailVC:(NSDictionary *)param {
    return [[TYZRouter sharedInstance] performTarget:kWDRouterTarget_GoutRescue action:kEDSRouterAction_getGoutWaitVehicleDetail params:param shouldCacheTarget:NO];
}
//action_goutWaitVehicleDetail 外出救援-待接车-详情
//NSString * const kEDSRouterAction_getGoutWaitVehicleDetail = @"goutWaitVehicleDetail";

/// 外出救援-待接车 - 接车扫码
/// @param param param description
- (UIViewController *)getGoutWaitVehicleScanVC:(NSDictionary *)param {
    return [[TYZRouter sharedInstance] performTarget:kWDRouterTarget_GoutRescue action:kEDSRouterAction_getGoutWaitVehicleScan params:param shouldCacheTarget:NO];
}
// action_goutWaitVehicleScan 外出救援-待接车 - 接车扫码
//NSString * const kEDSRouterAction_getGoutWaitVehicleScan = @"goutWaitVehicleScan";

/// 工单界面-外出-检查中-详情
/// @param param param description
- (UIViewController *)getGoutReviewVehicleDetailVC:(NSDictionary *)param {
    return [[TYZRouter sharedInstance] performTarget:kWDRouterTarget_GoutRescue action:kEDSRouterAction_getGoutReviewVehicleDetail params:param shouldCacheTarget:NO];
}
//action_goutReviewVehicleDetail 工单界面-外出-检查中-详情
//NSString * const kEDSRouterAction_getGoutReviewVehicleDetail = @"goutReviewVehicleDetail";

/// 工单界面-外出-检查中-扫码
/// @param param param description
- (UIViewController *)getReviewVehicleScanCodeVC:(NSDictionary *)param {
    return [[TYZRouter sharedInstance] performTarget:kWDRouterTarget_GoutRescue action:kEDSRouterAction_getReviewVehicleScanCode params:param shouldCacheTarget:NO];
}
// action_goutReviewVehicleScanCode 工单界面-外出-检查中-扫码
//NSString * const kEDSRouterAction_getReviewVehicleScanCode = @"goutReviewVehicleScanCode";

/// 工单界面-外出-维修中-详情
/// @param param param description
- (UIViewController *)getGoutMaintenanceVehicleDetailVC:(NSDictionary *)param {
    return [[TYZRouter sharedInstance] performTarget:kWDRouterTarget_GoutRescue action:kEDSRouterAction_getGoutMaintenanceVehicleDetail params:param shouldCacheTarget:NO];
}
// action_goutMaintenanceVehicleDetail 工单界面-外出-维修中-详情
//NSString * const kEDSRouterAction_getGoutMaintenanceVehicleDetail = @"goutMaintenanceVehicleDetail";

/// 工单界面-外出-维修中 - 扫码
/// @param param param description
- (UIViewController *)getGoutMaintenanceVehicleScanCodeVC:(NSDictionary *)param {
    return [[TYZRouter sharedInstance] performTarget:kWDRouterTarget_GoutRescue action:kEDSRouterAction_getGoutMaintenanceVehicleScanCode params:param shouldCacheTarget:NO];
}
// action_goutMaintenanceVehicleScanCode 工单界面-外出-维修中 - 扫码
//NSString * const kEDSRouterAction_getGoutMaintenanceVehicleScanCode = @"goutMaintenanceVehicleScanCode";

/// 工单界面-外出-待报单-详情
/// @param param param description
- (UIViewController *)getGoutPendingVehicleDetailVC:(NSDictionary *)param {
    return [[TYZRouter sharedInstance] performTarget:kWDRouterTarget_GoutRescue action:kEDSRouterAction_getGoutPendingVehicleDetail params:param shouldCacheTarget:NO];
}
// action_goutPendingVehicleDetail 工单界面-外出-待报单-详情
//NSString * const kEDSRouterAction_getGoutPendingVehicleDetail = @"goutPendingVehicleDetail";

/// 车辆定位
/// @param param param description
- (UIViewController *)getGoutVehicleLocationVC:(NSDictionary *)param {
    return [[TYZRouter sharedInstance] performTarget:kWDRouterTarget_GoutRescue action:kEDSRouterAction_getGoutVehicleLocation params:param shouldCacheTarget:NO];
}
// action_goutVehicleLocation 车辆定位
//NSString * const kEDSRouterAction_getGoutVehicleLocation = @"goutVehicleLocation";


@end
